<div class="header-top">
	<ul>
		<if condition="$username">
			<a href="{:U('Account/userInfo')}">
				<li><a href="#">您好&nbsp;&nbsp;{$username}</a></li>
			</a>
		<else />
			<a href="{:U('account/index')}">
				<li><a href="{:U('Account/index')}">登录</a></li>
			</a>
		</if>
		<li><a href="{:U('Account/register')}">注册</a></li>
		<li class="cartnav"><a href="{:U('Product/car')}"><span></span><div id="carCount">购物车({$carCount})</div></a></li>
	</ul>
	<if condition="$username">
			<!--<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div>-->
		<else />
			<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div>
	</if>
</div>
<div class="nav">
	<a href="{:U('Index/index')}" class="home"><span></span></a>
	<ul>
		<foreach name="top" item="tv">
			<li><a href="{:U('Product/index',array('id'=>$tv[id]))}">{$tv.name}</a></li>
		</foreach>
	</ul>
	<div class="search">
		<input type="text" placeholder="小米">
		<input type="button" value="L">
	</div>
</div>
